Skip to content

PR#155

Open
pritamlindayat wants to merge 12 commits intohttps-deeplearning-ai:mainfrom
pritamlindayat:main
Open

PR#155
pritamlindayat wants to merge 12 commits intohttps-deeplearning-ai:mainfrom
pritamlindayat:main

Conversation

@pritamlindayat
Copy link

@claude Sample PR

Lindayat and others added 12 commits March 3, 2026 15:45
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add fixed-position circular toggle button (top-right) with animated
  sun/moon SVG icons that crossfade on switch
- Add :root[data-theme="light"] CSS variables (light backgrounds, dark
  text) so all existing elements inherit the correct palette automatically
- Apply theme before first paint via inline <head> script reading
  localStorage to prevent flash of wrong theme
- Persist user preference to localStorage; aria-label updates dynamically
  for screen reader accessibility
- Use a .theme-transitioning class to temporarily apply 300ms color
  transitions across all elements during the switch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add test_api.py with 18 tests covering POST /api/query, GET /api/courses,
  and DELETE /api/session/{id} — including success, validation (422), and
  error (500) cases
- Extend conftest.py with mock_rag_system, test_app, and client fixtures;
  test_app mirrors app.py endpoints without static file mounting or real
  RAGSystem init to keep tests isolated
- Add httpx dev dependency (required by FastAPI TestClient) and addopts
  (-v --tb=short) to pytest config for cleaner output

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add black>=24.0.0 as a dev dependency with [tool.black] config (line-length 88, target py313)
- Apply black formatting consistently across all 14 Python source and test files
- Fix stale-sources bug in CourseSearchTool: reset last_sources=[] on empty results so sources don't leak between calls (resolves 1 failing test; all 35 now pass)
- Add scripts/quality.sh with subcommands: format, check (CI-safe), test, all

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant